package com.example.yunJie.digitalSentry.service.impl;

import com.example.yunJie.digitalSentry.entity.EquipmentEntity;
import com.example.yunJie.digitalSentry.mapper.one.EquipmentMapper;
import com.example.yunJie.digitalSentry.service.EquipmentService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class EquipmentServiceImpl implements EquipmentService {

    private final EquipmentMapper equipmentMapper;

    @Override
    public int insert(EquipmentEntity equipmentEntity) {
        return equipmentMapper.insert(equipmentEntity);
    }

    @Override
    public int update(EquipmentEntity equipmentEntity) {
        return equipmentMapper.update(equipmentEntity);
    }

    @Override
    public int deleteById(String id) {
        return equipmentMapper.deleteById(id);
    }

    @Override
    public int deleteIdList(List<Integer> idList) {
        return equipmentMapper.deleteIdList(idList);
    }

    @Override
    public EquipmentEntity findId(String id) {
        return equipmentMapper.findId(id);
    }

    @Override
    public List<EquipmentEntity> findAll(EquipmentEntity equipmentEntity) {
        return equipmentMapper.findAll(equipmentEntity);
    }
}
